module.exports = function(grunt) {

	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		clean: {
			dist: ['dist']
		},
		concat: {
			options: {
				separator: ';',
				stripBanners: true
			},
			dist: {
				src: ['cordova.js', 'cordova_plugins.js', 'plugins/**/*.js'],
				dest: '../dist/ruahoMobileSdk_ios.js'
			}
		},
		uglify: {
			options: {
				mangle: true
			},
			my_target: {
				files: {'../dist/ruahoMobileSdk_ios.min.js': '../dist/ruahoMobileSdk_ios.js'}
			}
		}
	});

	grunt.loadNpmTasks('grunt-contrib-clean');
	grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-uglify');

	grunt.registerTask('default', ['clean', 'concat', 'uglify']);
};